package com.platform.dao;

import org.apache.ibatis.annotations.Param;

import com.platform.entity.OrderEntity;

/**
 * 
 * 
 * @author lipengjun
 * @email 939961241@qq.com
 * @date 2017-08-13 10:41:09
 */
public interface OrderDao extends BaseDao<OrderEntity> {
	int cancelUpgradeOrder(Integer userId);
	
	int updateRemark(@Param("id")Integer id,@Param("remark")String remark,@Param("userId")Integer userId);
	
	int cancel(@Param("orderId")Integer orderId,@Param("userId")Integer userId);

	int confirm(@Param("orderId")Integer orderId,@Param("userId")Integer userId);
	
	int paying(@Param("orderId")Integer orderId,@Param("userId")Integer userId);
	
	int deleteById(@Param("orderId")Integer orderId,@Param("userId")Integer userId);
	
	int cancelNoPayOrder();
	
}
